package com.lhnstart.learn.bases.date_;

import java.time.Instant;
import java.util.Date;

/**
 * @author lhn
 * @date 2023/10/28 12:18
 * @since 1.0.0
 **/
public class Instant_ {

    public static void main(String[] args) {
        Instant now = Instant.now();
        System.out.println("now = " + now);
        Date from = Date.from(now);
        System.out.println("from = " + from);


    }

}